﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Actuals.CoreDomain;
using Actuals.CoreDomain.Business;
using Actuals.CoreDomain.Data;
using Actuals.Data;

namespace Actuals.Business
{
    public class BusinessSubTask : IBusinessSubTask
    {
          private IDalSubTask _dalSubTask;

         public BusinessSubTask(IDalSubTask dalSubTask)
        {
            _dalSubTask = dalSubTask;
        }

         public BusinessSubTask()
        {
            _dalSubTask = new DalSubTask();
        }

        public IList<ISubTask> GetSubTasks(int taskId)
        {
            IList<ISubTask> tasks = _dalSubTask.GetSubTasks(taskId);

           
            return tasks;
        }

        public ISubTask GetSubTask(int taskId)
        {
            return _dalSubTask.GetSubTask(taskId);
        }
    }
}
